<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="创建者" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入创建者" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建部门" prop="deptId">
              <a-input v-model="form.deptId" placeholder="请输入创建部门" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建名称" prop="userName">
              <a-input v-model="form.userName" placeholder="请输入创建名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门名称" prop="deptName">
              <a-input v-model="form.deptName" placeholder="请输入部门名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="公司ID" prop="companyId">
              <a-input v-model="form.companyId" placeholder="请输入公司ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="总投资" prop="zongtz">
              <a-input v-model="form.zongtz" placeholder="请输入总投资" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="累计投资" prop="leijitz">
              <a-input v-model="form.leijitz" placeholder="请输入累计投资" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="项目名称" prop="name">
              <a-input v-model="form.name" placeholder="请输入项目名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="建设单位" prop="builder">
              <a-input v-model="form.builder" placeholder="请输入建设单位" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否逾期" prop="isyq">
              <a-input v-model="form.isyq" placeholder="请输入是否逾期" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="领导" prop="lindao">
              <a-input v-model="form.lindao" placeholder="请输入领导" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="地址" prop="address">
              <a-input v-model="form.address" placeholder="请输入地址" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="年度投资" prop="yeartz">
              <a-input v-model="form.yeartz" placeholder="请输入年度投资" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="累计投资" prop="leijitz1">
              <a-input v-model="form.leijitz1" placeholder="请输入累计投资" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="年度目标" prop="yearflag">
              <a-textarea
                v-model="form.yearflag"
                placeholder="请输入年度目标"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="月目标" prop="monthflag">
              <a-textarea
                v-model="form.monthflag"
                placeholder="请输入月目标"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="排序" prop="sort">
              <a-input-number
                v-model="form.sort"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizZhongdianProjectEditForm from "./BizZhongdianProjectForm";
export default {
  ...BizZhongdianProjectEditForm,
};
</script>
